const express = require('express');
const bodyParser = require('body-parser');
const app = express();


app.use(bodyParser.json());
app.use(bodyParser.urlencoded({extended: false}));
const api = require('./api/api')
app.use('/api',api)

const PORT = process.env.PORT || 3000;
app.listen(PORT, () => {
    console.log('express server listen at http://localhost:'+PORT);
});



